package tv.scolopender.model;

import java.util.ArrayList;

public class Scolo {
	private int id;
	private String text;
	private double rating;
	private ArrayList<Comment> comments;
	private boolean favorite;

	public Scolo(int id, String text, double rating,
			ArrayList<Comment> comments, boolean favorite) {
		super();
		this.id = id;
		this.text = text;
		this.rating = rating;
		this.comments = comments;
		this.favorite = favorite;
	}

	public Scolo(String text, double rating, ArrayList<Comment> comments,
			boolean favorite) {
		this(0, text, rating, comments, favorite);
	}

	public Scolo() {
		this(0, "", 0, new ArrayList<Comment>(), false);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public double getRating() {
		return rating;
	}

	public void setRating(double rating) {
		this.rating = rating;
	}

	public ArrayList<Comment> getComments() {
		return comments;
	}

	public void setComments(ArrayList<Comment> comments) {
		this.comments = comments;
	}

	public boolean isFavorite() {
		return favorite;
	}

	public void setFavorite(boolean favorite) {
		this.favorite = favorite;
	}

}
